package com.kmt.plaza.dao;

import com.kmt.plaza.entity.ProductComments;
import com.kmt.plaza.entity.User;
import com.kmt.plaza.general.GeneralDAO;
import com.kmt.plaza.vo.ProductCommentsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ProductCommentsMapper extends GeneralDAO<ProductComments> {
    public List<ProductComments> findAllComments(@Param("productId") String productId,@Param("start") int start,
                              @Param("limit") int limit);

    /**
     * 用户评论
     */
    public int addComment(ProductCommentsVO productCommentsVO);
}